package  
{
	import org.flixel.*;

	public class EnemyBulletManager extends FlxGroup
	{
		public function EnemyBulletManager() 
		{
			super();
			
			scrollFactor.x = 0;
			scrollFactor.y = 0;
			
			//	There are 40 enemy bullets in our pool
			for (var i:int = 0; i < 40; i++)
			{
				add(new EnemyBullet, true);
			}
		}
		
		public function fire(bx:int, by:int):void
		{
			if (getFirstAvail())
			{
				EnemyBullet(getFirstAvail()).fire(bx, by);
			}
			
		}
		
	}

}